<template>
	<view class="wrapper">
		<view class="title" :style='borderTop?"border-top: 1rpx solid #eee;":""'>
			<view class="title-left">
				<view class="title-left-name">{{title}}<text v-if="ifnew">NEW~</text></view>
				<view class="title-left-line">{{content}}</view>
			</view>
			<navigator :url="url" open-type="switchTab" class="more">更多<text class="iconfont icon-jiantou icon01"></text></navigator>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			title:{
				type:String
			},
			content:{
				type:String
			},
			url:{
				type:String
			},
			ifnew:{
				type:Boolean,
				default:false
			},
			borderTop:{
				type:Boolean,
				default:true
			}
		}
	}
</script>

<style scoped>
	.wrapper{
		width: 100%;
	}
	.title{
		width: 690rpx;
		padding-top: 34rpx;
		margin: 0 30rpx;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
	.title-left{
		font-size: 24rpx;
		color: #999;
		width: 530rpx;
	}
	.title-left-name{
		color: #282828;
		font-size: 30rpx;
		font-weight: bold;
		margin-bottom: 5rpx;
		position: relative;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.title-left-name text{
		position: absolute;
		top: 2rpx;
		left: 130rpx;
		font-size: 16rpx;
		font-weight: bold;
		color: #fc4141!important;
	}
	.title-left-line{
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.more{
		font-size: 26rpx;
		color: #333;
		height: auto;
		width: auto;
		display: flex;
		align-items: center;
	}
	.icon01{
		margin-left: 9rpx;
		font-size: 26rpx;
		vertical-align: 3rpx;
	}
</style>
